/*bill.js*/
var api = require('../../../config/api.js');
var util = require('../../../utils/util.js');
const app = getApp()

Page({  
  data: {
    billList:{}
  },
  //消费记录数据加载
  ConsumRecord: function () {
    var that = this
    util.request(api.PersonalConsumUrl, { unionid: app.globalData.unionid }).then(function(res){
      if(res.data.code == 200){
        that.setData({
          billList: res.data.data
        })
      }
    })

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.ConsumRecord()
  },

})